package com.itheima.mm.dao;

import com.itheima.mm.entity.QueryPageBean;
import com.itheima.mm.pojo.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseDao {
    /*根据id获取数据*/
    Course findCourseById(@Param("id") int id);
    /*查找所有*/
    List<Course> findListAll();

    List<Course> findListByPage(@Param("queryPageBean") QueryPageBean queryPageBean);

    Long findTotal(@Param("queryPageBean")QueryPageBean queryPageBean);

    void delete(@Param("id") Integer courseId);

    void update(@Param("course")Course course);

    void add(@Param("course")Course course);
}
